//http://127.0.0.1:8080/service/page/scene?paged=1
import axios from "@/api";

// 获取企业管理
export const getqiyeAPI = (paged:any,data: any) => {
  return axios({
    url: "/service/page/scene?paged="+paged,
    method: "post",
    data
  });
};

//添加企业 /scene

export const addqiyeAPI = (data: any) => {
    return axios({
      url: "/service/scene",
      method: "post",
      data
    });
  };


  //获取全部企业 /page/scene-all

  export const getAllqiyeAPI = (data:any) => {
    return axios({
      url: "/service/scene/selectAll",
      method: "post",
      data
      
    });
  };

  //修改 /scene

  export const updatelqiyeAPI = (data:any) => {
    return axios({
      url: "/service/scene",
      method: "put",
      data
      
    });
  };


  export const deletelqiyeAPI = (data:any) => {
    return axios({
      url: "/service/scene?id="+data,
      method: "delete",
      
      
    });
  };